{% extends 'djangodemo/base.html' %}
{% load bootstrap3 %}

{% block header %}
    <h2>
        Add a new entry:
        <small>
            <a href="{% url 'djangodemo:topic' topic.id %}">{{ topic }}</a>
        </small>
    </h2>
{% endblock %}

{% block content %}

    <form action="{% url 'djangodemo:new_entry' topic.id %}" method="post" class="form">
        {% csrf_token %}
        {% bootstrap_form form %}

        {% buttons %}
            <button name="submit" class="btn btn-primary">add entry</button>
        {% endbuttons %}
    </form>

{% endblock content %}